#pragma once

#include <afxwin.h>
#include <process.h>
#include <Iphlpapi.h>
#include <Mprapi.h>
#include <atlconv.h>
#include <Setupapi.h>

class CEthernet
{
public:
	CEthernet(void);
	~CEthernet(void);

	INT  Init();
	void Release();

	INT  GetAdapterCount();
	BOOL GetAdapterName(INT Index, LPSTR lpAdapterName, UINT nMaxChar);
	BOOL GetIPAddress(INT Index, LPSTR lpIPAddress, UINT nMaxChar);

private:
	PIP_ADAPTER_INFO m_pIpAdapterInfo;
};
